package financial.sharing.center.invoice.service;

import com.github.pagehelper.PageInfo;
import financial.sharing.center.invoice.model.entity.Invoice;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @ClassName InvoiceService
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/19
 * @Version 1.0
 */
public interface InvoiceService {

    PageInfo<Invoice> getAllInvoice(String selectInvoiceContext, Integer selectInvoiceTypeValue, Integer selectInvoiceColorValue);

    Integer createOneInvoice(String invoiceContext, Integer invoiceTypeValue, Integer invoiceColorValue);

    Integer compileOneInvoice(Invoice invoice);

    Integer deleteOneInvoice(Integer id);

    Invoice getInvoice(Integer id);

    Map<Integer, BigDecimal> getMapInvoice();
}
